import {Pipe} from '@angular/core';

@Pipe({
  name: 'MenuPipe'
})

export class MenuPipe {

  transform(rawData, param) {
    let resultData = [];
    for (let key in rawData) {
      if(rawData[key].parentId == param){
        resultData.push(rawData[key]);
      }
    }
    return resultData;
  }
}